package com.onlinevideo.service;

import com.onlinevideo.entity.History;

import java.util.List;

public interface HistoryService {

    int insert(History history);

    int delete(Long id);

    int deleteByUserId(Long userId);

    int deleteByVideoId(Long videoId);

    int update(History history);

    History queryById(Long id);

    List<History> queryAll();

    List<History> queryByUser(Long id);

    List<History> queryByUserAndVideo(Long userId,Long videoId);

    int addHistory(Long userId,Long videoId);
}
